package com.foxit.adapp;
public class MemberSet {   

     private int member;
     private int adtype;
     private int show_time_every_hour;
     private String show_mode;
     public MemberSet() {
     }
     public MemberSet(int member,String ms) {
        this.member = member;
        //String ms = "1:0:10:popup;2:0:5:popup;3:3:0:popup;4:1:1:popup;5:2:1:popup";
        if(ms!=null && ms.length()!=0) {
        String[] ml= ms.split(";");
           for(int i=0;i < ml.length;i++) {
              String[] mu=ml[i].split(":");
              if(Integer.valueOf(mu[0])==member) {
                 this.adtype= Integer.valueOf(mu[1]);
                 this.show_time_every_hour=Integer.valueOf(mu[2]);
                 this.show_mode = mu[3];
              }
           }
        }
     }
     public int getShowtime() {
        return show_time_every_hour;
     }
     public String getShowmode() {
        return show_mode;
     } 
     public int getAdtype() {
        return adtype;
     } 

}
